﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<TemplateWeb.Models.ViewModels.GroupViewModel>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
    <script type="text/javascript">
        $(document).ready(function () {
            $('#slider').s3Slider({
                timeOut: 3000
            });
        });
    </script>

    <div class="column2">
        <div class="home-top-hot">
            <div id="slider">
                <ul id="sliderContent">
                    <% for (int i = 0; i < Model.DuAnVipModel.GetModel.LstObjModel.Count; i++)
                       { %>
                        <li class="sliderImage">
                            <a href="<%= Url.Action("ChiTietNhaDatDuAn", "Home", new { id = Model.DuAnVipModel.GetModel.LstObjModel[i].ID }) %>" title="<%= Model.DuAnVipModel.GetModel.LstObjModel[i].TieuDe %>">
                                <img src="../../Content/Images/Items/<%= Model.DuAnVipModel.GetModel.LstObjModel[i].HinhMinhHoa %>" />
                                <span class="bottom"><strong><%= Model.DuAnVipModel.GetModel.LstObjModel[i].TieuDe %></strong><br /></span>
                            </a>
                        </li>
                    <% } %>
                    <div class="clear sliderImage"></div>
                </ul>
            </div>
            <div class="playlist-hot">
                <div id="playlist-home">
                    <% for (int i = 0; i < Model.DuAnTieuBieuModel.GetModel.LstObjModel.Count; i++)
                       { %>
                        <a href="<%= Url.Action("ChiTietNhaDatDuAn", "Home", new { id = Model.DuAnTieuBieuModel.GetModel.LstObjModel[i].ID }) %>" title="<%= Model.DuAnTieuBieuModel.GetModel.LstObjModel[i].TieuDe %>">
                            <div class="item"> 
        
                                <div class="left">
                                    <img title="<%= Model.DuAnTieuBieuModel.GetModel.LstObjModel[i].TieuDe %>" src="../../Content/Images/Items/<%= Model.DuAnTieuBieuModel.GetModel.LstObjModel[i].HinhMinhHoa %>" alt="<%= Model.DuAnTieuBieuModel.GetModel.LstObjModel[i].TieuDe %>" />
                                </div>
                                <div class="right">
                                    <%= Model.DuAnTieuBieuModel.GetModel.LstObjModel[i].QuanHuyen.TinhThanh.TenTinhThanh %> - <%= Model.DuAnTieuBieuModel.GetModel.LstObjModel[i].TieuDe %>
                                </div>
                            </div> 
        
                        </a>     
                    <% } %>
                </div>
            </div>
        </div>
    </div>
    <!-- DU AN -->
    <div class="column2">
        <table cellpadding="0" cellspacing="0" width="100%">
            <tr>
				<td background="../../Content/Images/Home/nen_xanh_soc.gif" height="24" />
				    <img src="../../Content/Images/Home/icon_nha_x.gif" alt="" width="22" height="20" />
                    <span class="white_bold">DỰ ÁN MỚI NHẤT</span>
                </td>
			</tr>
            <tr>
				<td class="Menutin_content" valign="top">
					<div class="topProducts">
                        <div style="padding-left:5px">
                            <% for (int i = 0; i < Model.DuAnNewestModel.GetModel.LstObjModel.Count; i++){%>
                                <div class="itemProducts">
                                    <a href="<%= Url.Action("ChiTietNhaDatDuAn", "Home", new { id = Model.DuAnNewestModel.GetModel.LstObjModel[i].ID }) %>">
                                        <img src="../../Content/Images/Items/<%= Model.DuAnNewestModel.GetModel.LstObjModel[i].HinhMinhHoa %>" alt="" border="0" style="border: 1px solid rgb(56, 184, 244);" />
                                    </a>
                                    <h3><a href="<%= Url.Action("ChiTietNhaDatDuAn", "Home", new { id = Model.DuAnNewestModel.GetModel.LstObjModel[i].ID }) %>"><%= Model.DuAnNewestModel.GetModel.LstObjModel[i].TieuDe %></a></h3>
                                </div>
                            <% } %>
                        </div>
                    </div>
				</td>
			</tr>
        </table>
    </div>
    <!-- DU AN -->
    <div class="column2" style="padding-top: 5px; padding-bottom: 5px;">
        <table cellpadding="0" cellspacing="0" width="100%">
            <tr>
				<td background="../../Content/Images/Home/nen_xanh_soc.gif" height="24" />
				    <img src="../../Content/Images/Home/icon_nha_x.gif" alt="" width="22" height="20" />
                    <span class="white_bold">SẢN PHẨM LẺ TIÊU BIỂU</span>
                </td>
			</tr>
            <tr>
			    <td class="Menutin_content" valign="top">
                    <div class="listItemProduct">
                        <% for (int i = 0; i < Model.SanPhamLeTieuBieuModel.GetModel.LstObjModel.Count; i++)
                           {%>
                            <div class="products" style="width:310px; float:left;">
                                <div class="productsWrap" style="width:310px; height:130px; padding:5px; background:0 none;">
                                    <div class="pict" style="padding:0; width:140px">
						                <a href="<%= Url.Action("ChiTietNhaDatLe", "Home", new { id = Model.SanPhamLeTieuBieuModel.GetModel.LstObjModel[i].ID }) %>">
                                            <img src="../../Content/Images/Items/<%= Model.SanPhamLeTieuBieuModel.GetModel.LstObjModel[i].HinhMinhHoa %>" alt="HTC Desire HD" border="0" width="120" height="100" />
                                        </a><BR />
						                <span style="color:BLUE"><BR /></span>
					                </div>
                                    <div class="desc" style="padding-left:10px; padding-right: 5px; padding-top: 5px; width:150px;">
                                        <% var gia = Model.SanPhamLeTieuBieuModel.GetModel.LstObjModel[i].LoaiGia.TenLoaiGia.ToUpper().Contains("m<sup>2</sup>") ? String.Format("{0:#,##0;Nothing}", Model.SanPhamLeTieuBieuModel.GetModel.LstObjModel[i].Gia) + "/m<sup>2</sup>" : String.Format("{0:#,##0;Nothing}", Model.SanPhamLeTieuBieuModel.GetModel.LstObjModel[i].Gia) + " VNĐ";
                                           var phaply = Model.SanPhamLeTieuBieuModel.GetModel.LstObjModel[i].CoSoHong == true ? "Có sổ đỏ" : "_";
                                           var ngang = Model.SanPhamLeTieuBieuModel.GetModel.LstObjModel[i].DienTichNgang != 0 ? Model.SanPhamLeTieuBieuModel.GetModel.LstObjModel[i].DienTichNgang.ToString() : "_";
                                           var doc = Model.SanPhamLeTieuBieuModel.GetModel.LstObjModel[i].DienTichDoc != 0 ? Model.SanPhamLeTieuBieuModel.GetModel.LstObjModel[i].DienTichDoc.ToString() : "_";%>
						                <span style="font-weight:bold; color: #ff7c00;"><%= Model.SanPhamLeTieuBieuModel.GetModel.LstObjModel[i].TieuDe.ToUpper() %></span> <br />- Mã SP: SPL <%= Model.SanPhamLeTieuBieuModel.GetModel.LstObjModel[i].ID %><br />- Giá: <span style="font-weight:bold; color: Red;"><%= gia %> </span><br />- Diện tích: <%= ngang %>m x <%= doc %>m <br />- Pháp lý: <%= phaply %><br />- Địa điểm: <%= Model.SanPhamLeTieuBieuModel.GetModel.LstObjModel[i].QuanHuyen.TenQuanHuyen %> - <%= Model.SanPhamLeTieuBieuModel.GetModel.LstObjModel[i].QuanHuyen.TinhThanh.TenTinhThanh %>
						                <p><strong><a href="<%= Url.Action("ChiTietNhaDatLe", "Home", new { id = Model.SanPhamLeTieuBieuModel.GetModel.LstObjModel[i].ID }) %>" title="Xem chi tiết...">Xem chi tiết...</a></strong></p>
					                </div>
                                </div>
                            </div>
                        <% } %>
                    </div>
                </td>
		    </tr>
        </table>
    </div>
</asp:Content>
